#ifndef MESSAGE_H
#define MESSAGE_H
enum MessageType{
	REQUESTRESOURCE,
	REQUESTRS,
	REQUESTRESOURCEOVER,
	HEARTBEAT,
	SPREADRESOURCE,
	SPREADRESOURCEACK
};

typedef struct clientRequestPack{
	unsigned int messageType;
	unsigned int rsId;
	unsigned int fileId;
	unsigned int clientId;
	unsigned int clientBandwidth;
}ClientRequestPack;

typedef struct resourceSpread{
	unsigned int messageType;
	unsigned int fileId;
	unsigned int sourceRsId;
	unsigned int destRsId;
}ResourceSpread;


#endif
